package com.example.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mall.domain.CouponProductRelation;
import com.example.mall.dto.CouponProductRelationDto;
import com.example.mall.query.CouponProductRelationQuery;
import com.example.mall.query.PageDTO;

import java.util.List;


/**
 * <p>
 * 优惠券适用商品关联表 服务类
 * </p>
 *
 * @author whale
 * @since 2025-05-06
 */
public interface ICouponProductRelationService extends IService<CouponProductRelation> {

    //分页查询优惠券适用商品关联表信息
    PageDTO<CouponProductRelationDto> queryPage(CouponProductRelationQuery couponProductRelationQuery);

    //新增优惠券适用商品关联表
    void insert(CouponProductRelationDto couponProductRelationDto);
    //修改优惠券适用商品关联表信息
    void update(CouponProductRelationDto couponProductRelationDto);
    //删除优惠券适用商品关联表信息
    void delete(Long relationId);
    //批量删除优惠券适用商品关联表信息
    void deleteBatch(List<Long> relationIds);
    //根据id查询优惠券适用商品关联表信息
    CouponProductRelation queryCouponProductRelationById(Long relationId);

    //查询全部优惠券适用商品关联表信息
    List<CouponProductRelation> queryCouponProductRelationList();
}
